Fun projects with Raspberry Pi: Theory, circuits, coding and everything you need for amazing Raspberry Pi projects by S. A. Rodrigo

Fun projects with Raspberry Pi: Theory, circuits, coding and everything you need for amazing Raspberry Pi projects by S. A. Rodrigo

Author:S. A., Rodrigo
Language: eng
Format: epub
Publisher: Steadman Thompson
Published: 2021-08-01T00:00:00+00:00


Robot

This project is interesting for several reasons. One of them is that we will use new components like servo motors and motor drivers. Then we will build a robot and robots are ideal to generate kids and not so kids, interest in programming and electronics.

This robot use 2 DC motors and the power is not connected directly to Raspberry Pi but to an external power source since since power requirements are higher than the power that Raspberry Pi pins are able to offer. On the other side, motors deceleration could damage the Raspberry. For those reasons, we use HW094 driver between motors and Raspberry. In basic terms, Raspberry sends the signal and HW094 drives the motors. For power source we will use a simple 9V battery and to Power the Raspberry a USB power bank. So everything is cheap and easy to obtain.

How is the robot controlled you may wonder. We will connect to Raspberry Pi using SSH and we will send commands to go forward, back, to turn and stop. You can control the robot from the computer but also from your Smartphone. If you want to use the Smartphone just download Termius app. It is free and compatible with iPhone and Android.

Requirements

Raspberry

Robot chasis

2 DC motors

HW094 drivers

Power Bank USB

9V battery

Driver signals

HW094 is controlled with the following signals for EN, IN1 and IN2.

0​N/A​N/A​Motor A is off

1​0​0​Motor A is stopped (brakes)

1​0​1​Motor A is on and turning backwards

1​1​0​Motor A is on and turning forwards

1​1​1​Motor A is stopped (brakes)

Circuit



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.